//
//  WJWebImageController.m
//  JerryIos
//
//  Created by jerrywang on 2018/2/10.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJWebImageController.h"
#import "WJWebImageShowController.h"

@interface WJWebImageController ()

@end

@implementation WJWebImageController

- (void)viewDidLoad {
    [super viewDidLoad];
   
}

- (IBAction)buttonClick:(id)sender {
    NSString *url = @"http://i1.shouyou.itc.cn/2015/news/2015/05/22/1280x720bz0523_15.jpg";
    [self jumpShowController:url];
}

- (IBAction)gifButtonClick:(id)sender {
    NSString *url = @"http://d.ifengimg.com/w128/p0.ifengimg.com/pmop/2017/0723/F6EB18F0CA32F451147CDA001E57EDD421A9BD21_size815_w542_h963.gif";
    [self jumpShowController:url];
}

-(void)jumpShowController:(NSString *)urlStr {
    WJWebImageShowController *showController = [[WJWebImageShowController alloc] init];
    NSURL *url = [NSURL URLWithString:urlStr];
    showController.imageURL = url;
    [self.navigationController pushViewController:showController animated:YES];
}

@end
